from abc import ABCMeta, abstractmethod

#
# class Animal:
#     @abstractmethod
#     def walk(self):
#         pass
#
#     @abstractmethod
#     def fly(self):
#         pass
#
#     @abstractmethod
#     def swim(self):
#         pass
#
#
# class Tiger(Animal):
#     def walk(self):
#         print("老虎走路")
#
#
# if __name__ == '__main__':
#     Tiger().walk()


class LandAnimal:
    @abstractmethod
    def walk(self):
        pass

class FlyAnimal:
    @abstractmethod
    def fly(self):
        pass

class SwimAnimal:
    @abstractmethod
    def swim(self):
        pass

class Tiger(LandAnimal):
    def walk(self):
        print("老虎走路")

#青蛙即会走也会游泳
class frog(LandAnimal,SwimAnimal):
    def walk(self):
        print("青蛙走路")
    def swim(self):
        print("青蛙游泳")

if __name__ == '__main__':
    Tiger().walk()
    frog().walk()
    frog().swim()